package com.cn.api;

import com.cn.dto.ProductDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Primary
@FeignClient(value = "product-client",path = "/test")
public interface TestCoreService {

    //修改产品信息
    @PostMapping("/modification")
    int modification(@RequestBody ProductDTO productDTO);


}
